---
import LayoutHtml from "@layouts/LayoutHtml.astro";
import LayoutHead from "@layouts/LayoutHead.astro";
import LayoutBody from "@layouts/LayoutBody.astro";
import ArticleMain from "@components/article/ArticleMain.astro";
import LayoutHeader from "@layouts/LayoutHeader.astro";
import LayoutHeardSeo from "@layouts/LayoutHeardSeo.astro";
import CommonColumn from "@components/common/column/CommonColumn.astro";

---

<LayoutHtml>
  <th:block th:with="article=${@articleTag.selectWebArticleHtmlById(articleId,themeName)}">
    <LayoutHead >
       <th:block th:if="${article!=null}">
          <LayoutHeardSeo
            title="${article.articleTitle+' - '+webConfig['oly.web.title']}"
            keywords="${article.keywords}"
            description="${article.description}"
          />
        </th:block>
        <th:block th:unless="${article!=null}">
          <LayoutHeardSeo
            title="${'未找到 - '+webConfig['oly.web.title']}"
            keywords="${'未找到'}"
            description="${'未找到'}"
          />
        </th:block>
    </LayoutHead>
    <LayoutBody>
      <LayoutHeader>
      <CommonColumn />
    </LayoutHeader>
      <ArticleMain />
    </LayoutBody>
  </th:block>
</LayoutHtml>
